<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
                <!-- 引入Vue -->
	<script type="text/javascript" src="../js/vue.js"></script>
    <div id="app">
        <input type="text" @keyup.enter="func4" />
    </div>
</head>
<body>
    <script>
        document.write("&#105;&#116;&#106;&#99;&#56;&#46;&#99;&#111;&#109;&#25910;&#38598;&#25972;&#29702;");
        var m = {

        };

        var vm = new Vue({
            el: '#app',
            data: m,
            methods: {
                // func: function(event){
                //     console.log(event, event.target);
                //     console.log('冒泡中。。。');
                // },
                // func2: function(event){
                //     console.log('冒泡2中。。。');
                // }

                // func3: function(){
                //     alert('去百度啦，不想让他去！');
                //     // console.log('去百度啦，不想让他去！');
                // }

                func4: function(){
                    console.log('按键了！');
                }
            }
        });
    </script>
</body>
</html>